package com.beta.em.admins;

/**
 * Created by lichao on 2017/1/20.
 */
public enum BankAccountType {
    PRIVATECASH("PrivateCash","对私"),
    PUBLICCASH("PublicCash","对公");
    private String value;
    private String CnValue;

    BankAccountType(String value, String cnValue) {
        this.value = value;
        CnValue = cnValue;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getCnValue() {
        return CnValue;
    }

    public void setCnValue(String cnValue) {
        CnValue = cnValue;
    }

    public static String getBankAccountType(String value){
        for (BankAccountType type:values()) {
            if(type.value.equals(value)){
                return type.CnValue;
            }
        }
        return null;
    }
}
